﻿#pragma once

#include <QEventLoop>
#include <QJsonObject>
#include <QNetworkAccessManager>
#include <QNetworkReply>

class HttpPostLuogu : public QObject
{
    Q_OBJECT

public:
    explicit HttpPostLuogu(QObject* parent = nullptr);

    QByteArray post(const QString& strUrl);
    QString getLastError() const;

private:
    QNetworkAccessManager* manager;
    QString lastError;
};
